package com.lyz.auth.application.convert;

import com.lyz.auth.application.dto.AuthUserDto;
import com.lyz.auth.domain.entity.AuthUserBo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 用户dto转换器
 *
 * @author: YizeLee
 * @date: 2024/4/26
 */
@Mapper
public interface AuthUserDtoConverter {

    AuthUserDtoConverter INSTANCE = Mappers.getMapper(AuthUserDtoConverter.class);

    AuthUserBo convertDtoToBo(AuthUserDto authUserDto);

    AuthUserDto convertBoToDto(AuthUserBo authUserBo);

}
